<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .classA {
            width: 200px;
            height: 200px;
            background-color: red;
        }

        .classB {
            font-size: 100px;
        }
    </style>
</head>

<body>
    <div id="app">
        <input type="text" v-model="input">
        <img :src="mySrc" alt="">
        <div :class="classAA"></div>
        <div :class="[classAA,classBB]">xxxxxxxxxxxxx</div>
        <div :class="[classAA,{classB:isFlag}]">xxxxxxxxxxxxx</div>
        <div :class="{classA:isFlagA,classB:isFlagB}">xxxxxxxxxxxxx</div>
    </div>
    <script src="./js/vue.js"></script>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                input: "我是一个输入的值",
                mySrc: "./img/哈士奇.jpg",
                classAA: "classA",
                classBB: "classB",
                isFlag: false,
                isFlagA: true,
                isFlagB: false
            },
            methods: {}
        });
    </script>
</body>

</html>